package com.rui.admin.mapper;



import com.rui.common.pojo.Address;
import com.rui.common.vo.AddressVO;
import org.springframework.stereotype.Component;

import java.util.List;


/**
 * @author huang Zeming
 * @date 2024/06/08
 */
@Component
public interface AddressMapper {

    /*根据用户id查询所有address*/
    List<Address> listAllAddress(Integer id);

    /*根据用户id修改address*/
    Integer updateAddressById(Address address);

    /*添加address*/
    Integer addAddress(AddressVO address);

    /*根据aid获取address*/
    Address findAddressByAid(Integer aid);
}


